<nav class="navbar-custom">

    <div class="container-fluid">
        <ul class="list-unstyled topbar-right-menu float-right mb-0">

            <li class="dropdown notification-list">
                <!-- Mobile menu toggle-->
                <a class="navbar-toggle nav-link">
                    <div class="lines">
                        <span></span>
                        <span></span>
                        <span></span>
                    </div>
                </a>
                <!-- End mobile menu toggle-->
            </li>

            {{--留言--}}
           {{-- <li class="dropdown notification-list">
                <a class="nav-link dropdown-toggle arrow-none" data-toggle="dropdown" href="#" role="button"
                   aria-haspopup="false" aria-expanded="false">
                    <i class="hcl hcl-notice"></i>
                    <span class="badge badge-danger badge-pill noti-icon-badge">4</span>
                </a>
                <div class="dropdown-menu dropdown-menu-right dropdown-menu-animated dropdown-lg">

                    <!-- item-->
                    <div class="dropdown-item noti-title">
                        <h5 class="m-0"><span class="float-right"><a href="" class="text-dark"><small>清空</small></a> </span>消息</h5>
                    </div>

                    <div class="slimscroll noti-scroll">
                        <!-- item-->
                        <a href="javascript:void(0);" class="dropdown-item notify-item">
                            <div class="notify-icon bg-warning"><i class="mdi mdi-comment-account-outline"></i></div>
                            <p class="notify-details">Caleb Flakelar commented on Admin<small class="text-muted">1 min ago</small></p>
                        </a>

                        <!-- item-->
                        <a href="javascript:void(0);" class="dropdown-item notify-item">
                            <div class="notify-icon bg-info"><i class="mdi mdi-account-plus"></i></div>
                            <p class="notify-details">New user registered.<small class="text-muted">5 hours ago</small></p>
                        </a>

                        <!-- item-->
                        <a href="javascript:void(0);" class="dropdown-item notify-item">
                            <div class="notify-icon"><img src="/{{config('store.theme.theme2')}}/images/users/avatar-2.jpg" class="img-fluid rounded-circle" alt="" /> </div>
                            <p class="notify-details">Cristina Pride</p>
                            <p class="text-muted font-13 mb-0 user-msg">Hi, How are you? What about our next meeting</p>
                        </a>

                    </div>

                    <!-- All-->
                    <a href="javascript:void(0);" class="dropdown-item text-center text-primary notify-item notify-all">
                        查看所有 <i class="fi-arrow-right"></i>
                    </a>

                </div>
            </li>--}}

            {{--商户信息--}}
            <li class="dropdown notification-list">
                <a class="nav-link dropdown-toggle nav-user" data-toggle="dropdown" href="#" role="button"
                   aria-haspopup="false" aria-expanded="false">
                    <img src="/{{config('store.theme.theme2')}}/images/users/avatar-1.jpg" alt="user" class="rounded-circle">
                    <span class="ml-1">{{$store_info['store_name']}} <i class="mdi mdi-chevron-down"></i> </span>
                </a>
                <div class="dropdown-menu dropdown-menu-right dropdown-menu-animated profile-dropdown ">
                    <!-- item-->
                  {{--  <div class="dropdown-item noti-title">
                        <h6 class="text-overflow m-0">Welcome !</h6>
                    </div>--}}

                    <!-- item-->
                    <a href="{{route('Store_info')}}" class="dropdown-item notify-item">
                        <i class="hcl hcl-info"></i><span>店铺信息</span>
                    </a>
                    <a href="javascript:;" url="{{route('Store_closeStore')}}" class="dropdown-item notify-item btn-ajax cursor-pointer" data-params='{"confirm":true}'>
                        @if($store_info['is_open'] ==0)
                            <i class="hcl hcl-o-selected"></i><span>开启店铺</span>
                        @else
                            <i class="hcl hcl-circle-jian"></i><span>暂停营业</span>
                        @endif
                    </a>
                </div>
            </li>

            {{--设置--}}
            <li class="dropdown notification-list">
                <a href="javascript:void(0);" url="{{route('f_Login_logout')}}"
                   class="nav-link right-bar-toggle btn-ajax"
                   data-params='{"confirm":true,"title":"确定退出系统吗"}'
                >
                    <i class="hcl hcl-logout"></i>
                </a>
            </li>
        </ul>

        <ul class="list-inline menu-left mb-0">
            <li class="float-left">
                <a href="{{route('Store_index')}}" class="logo">
                <span class="logo-lg">
                    <img src="/{{config('store.theme.theme2')}}/images/logo.png" alt="" height="20">
                </span>
                <span class="logo-sm">
                    <img src="/{{config('store.theme.theme2')}}/images/logo_sm.png" alt="" height="28">
                </span>
                </a>
            </li>
            <li class="app-search">
                <form>
                    <input type="text" placeholder="搜索" class="form-control">
                    <button type="submit" class="sr-only"></button>
                </form>
            </li>
        </ul>
    </div>

</nav>
<!-- end topbar-main -->

<div class="topbar-menu">
    <div class="container-fluid">
        <div id="navigation">
            <!-- Navigation Menu-->
            <ul class="navigation-menu">
                @foreach(config('store.menu') as $first_menu)
                    <li class="has-submenu">
                        @if(!isset($first_menu['children']))
                            <a href="{{route($first_menu['url'])}}">
                                <i class="hcl {{$first_menu['icon']}}"></i>{{$first_menu['title']}}
                            </a>

                        @else
                            <a href="javascript:;"><i class="hcl {{$first_menu['icon']}}"></i>{{$first_menu['title']}}</a>
                            <ul class="submenu">
                                @foreach($first_menu['children'] as $second_menu)
                                    <li><a href="{{route($second_menu['url'])}}">{{$second_menu['title']}}</a></li>
                                @endforeach
                            </ul>
                        @endif
                    </li>
                @endforeach
            </ul>
            <div class="clearfix"></div>
        </div> <!-- end #navigation -->
    </div> <!-- end container -->
</div> <!-- end navbar-custom -->